package com.aistar.service.job;

import com.aistar.model.entity.Delivery;

import java.util.Date;
import java.util.List;

public interface IDeliveryService {
    //增加投递信息
    int addDelivery(Integer resumeId, Integer recruitmentId);

    // 根据求职者id和职位id获取所有的投递记录
    List<Delivery> getDeliveryList(Integer employeeId,Integer recruitmentId);

    // 判断是否可以投递
    boolean judgeDelivery(Integer recruitmentId,Integer employeeId);

    // 往redis里插数据然后发送消息
    void saveToRedis(Integer resumeId, Integer recruitmentId,Integer employeeId);

    // 判断该求职者是否被投递的公司屏蔽
    boolean judgeBlacklist(Integer recruitmentId,Integer employeeId);

    // 真正的添加到数据库
    void saveToMysql(Integer resumeId, Integer recruitmentId, Date deliveryTime);

}
